package itcz.example.pattern.create_action.factory.simple_factory;

/**
 * @ClassName: CoffeeStore
 * @Author: ITCZ
 * @Date: 2025-04-26
 * @Description: 咖啡
 */
public class CoffeeStore {
    public Coffee orderCoffee(String type) {
        SimpleCoffeeFactory factory = new SimpleCoffeeFactory();
        Coffee coffee = factory.createCoffee(type);
        coffee.addMilk();
        coffee.addSugar();
        return coffee;
    }

}
